package com.xing.jvmsandbox.weave.test;

import com.xing.jvmsandbox.Spy;

public class ComputerProxy extends Computer {
    public ComputerProxy() {
    }

    public <E> boolean isEmptyArray(E... array) {
        return null == array || array.length == 0;
    }

    public int sum(int... numberArray) {
        Spy.spyMethodOnBefore(new Object[]{numberArray}, 1000, "com.xing.jvmsandbox.weave.test.Computer", "sum", "([I)I", this);
        if (this.isEmptyArray(new int[][]{numberArray})) {
            Spy.spyMethodOnReturn(new Integer(0), 1000);
            return 0;
        } else {
            int sum = 0;
            int[] var3 = numberArray;
            int var4 = numberArray.length;

            for(int var5 = 0; var5 < var4; ++var5) {
                int n = var3[var5];
                sum += n;
            }

            Spy.spyMethodOnReturn(new Integer(sum), 1000);
            return sum;
        }
    }
}
